<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%><%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<s:include value="/WEB-INF/includes/css.jsp" />
	<s:include value="/WEB-INF/includes/javascript.jsp" />
	<title><s:text name="categories" /></title>
</head>
<body>
	<div id="container">
		<s:include value="/WEB-INF/includes/header.jsp" />
		<div id="content">
			<s:include value="/WEB-INF/includes/admin/content-nav.jsp" />
			<div id="content-body">
				<h2><s:text name="categories" /></h2>
				<s:if test="actionMessages.size() > 0">
					<div class="success rounded">
						<s:iterator value="actionMessages"><s:property /><br /></s:iterator>
					</div>
				</s:if>
				<s:if test="actionErrors.size() > 0">
					<div class="error rounded">
						<s:iterator value="actionErrors"><s:property /><br /></s:iterator>
					</div>
				</s:if>
                <div class="box rounded">
                	<p><s:text name="category.content"></s:text></p>
					<s:if test="categories.size() > 0">
						<ul class="sortable fixed">
						<s:iterator value="categories">
							<li>
								<span class="item"><s:property value="name" /></span>
								<span class="opts">
									<a class="edit" href="<s:url action="edit-category"><s:param name="id" value="id" /></s:url>"><s:text name="category.edit" /></a>
									<a class="remove" href="<s:url action="remove-category"><s:param name="id" value="id" /></s:url>"><s:text name="category.remove" /></a>
								</span>
							</li>
						</s:iterator>
						</ul>
					</s:if><s:else>
						<div class="info rounded"><s:text name="category.no.categories" /></div>
					</s:else>
					<a class="new" href="<s:url action="new-category" />"><s:text name="category.new" /></a>
				</div>
			</div>
			<div class="clear">&nbsp;</div>
		</div>
		<s:include value="/WEB-INF/includes/footer.jsp" />
	</div>
</body>
</html>
